Part Number Hot Search : 
MC3320 DL324 HL6526FM ATMEGA16 H330X ORD9215 UF1004 SMART
Product Description
Full Text Search
 

To Download DS1615 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  DS1615 temperature recorder DS1615 preliminary 052698 1/20 features ? digital thermometer measures temperature 40 c to +85 c in 0.5 c increments (40 f to +183.2 f in 0.9 f increments). ? digital thermometer provides 2 c accuracy. ? real time clock/calendar in bcd format counts seconds, minutes, hours, date, month, day of the week, and year with leap year compensation. ? automatically wakes up and measures temperature at userprogrammable intervals from 1 to 255 min- utes. ? logs up to 2048 consecutive temperature measure- ments in readonly nonvolatile memory. ? records longterm temperature histogram with 2.0 c resolution (63 bins). ? programmable temperaturehigh and temperature low alarm trip points. ? two serial interface options: synchronous and asynchronous 3wire synchronous serial interface asynchronous serial interface compatible with standard uarts. ? memory partitioned into 32 byte pages for packetizing data. ? onchip 16bit crc generator to safeguard data read operations in asynchronous communications mode. ? optional unique, factory lasered and tested 64bit serial number. pin assignment 1 2 3 4 5 6 7 8 16 15 14 13 12 11 10 9 DS1615 16pin dip v cc comsel rx tx sclk i/o rst st v bat x1 x2 nc inspec outspec int gnd DS1615s 16pin soic (300 mil) pin description vbat battery supply x1 crystal input x2 crystal output nc no connect inspec inspecification output outspec outofspecification output int interrupt output gnd ground st start/status input rst 3wire reset input i/o 3wire input/output sclk 3wire clock input tx transmit output rx receive input comsel communication select v cc +5v supply ordering information DS1615 16pin dip DS1615s 16pin soic description the DS1615 is an integrated temperature recorder that combines a real time clock with temperature data log- ging and histogram capabilities. it has been designed for applications that require temperature profiling over a given period of time. a programmable sampling rate feature makes the device ideal for applications requiring temperature monitoring over short or long time frames. the integrated real time clock (rtc) provides seconds, minutes, hours, day, date, month, and year
DS1615 052698 2/20 information with leap year compensation and also pro- vides an alarm interrupt. temperature measurement is provided via integrated thermal technology which can measure temperatures from 40 c to +85 c in 0.5 c increments. the DS1615 is a powerful data recording device, pro- viding both a datalog of sampled temperature values over time and a histogram of temperature. the datalog function simply samples the temperature at a user defined sample rate and writes the data to the tempera- ture datalog memory. up to 2048 datalog samples may be recorded. histogram functionality is implemented by sampling the temperature and then incrementing the count value in a data bin associated with that tempera- ture. the DS1615 provides 63 twobyte data bins in 2 c increments. the user can program data sampling for both data logging and for histogram tabulation at intervals ranging from once per minute to once every 255 minutes. the DS1615 also supports programmable high and low temperature alarm trip points that allow the device to monitor whether the temperature stays within desired limits. the device can drive an interrupt or status pin if the temperature falls outside of the programmable lim- its. the DS1615 can be programmed to begin sampling data via a pushbutton input or via a command sent over the serial interface with a host machine. the DS1615 also provides an optional 64bit serial number which is useful for product identification and tracking. overview the block diagram in figure 1 shows the relationship between the major control and memory sections of the DS1615. the device has five major data components: 1) 32byte real time clock and control block, 2) 32byte user nvram with optional 64bit lasered serial number, 3) 96 bytes of alarm event/duration memory, 5) 128 bytes of histogram ram, and 6) 2048 bytes of datalog memory. all memory is arranged in a single linear address space. DS1615 block diagram figure 1 sclk serial interface rst i/o comsel tx rx memory function contorl rtc and control registers internal rtc and control registers user nv ram optional serial number alarm time stamp and duration logging memory histogram memory temperature logging memory control logic temperature sensor oscillator and divider st int outspec inspec x1 x2 signal descriptions the following paragraphs describe the function of each pin. v cc vcc is a +5v input supply. communication with the DS1615 can take place only when vcc is connected to a +5v supply.
DS1615 052698 3/20 v bat battery input for standard lithium cell or other energy source. all functions of the DS1615 with the exception of the serial interface circuitry are powered by v bat when v cc < v bat . all functions are powered by v cc when v cc > v bat . gnd ground comsel (communication select input) this pin determines whether serial communication is asynchro- nous or synchronous. when pulled high to v cc , com- munication is synchronous and will take place via the sclk, i/o, and rst pins. when comsel is tied to ground, asynchronous communication utilizing the tx and rx pins is selected. if this pin is floated, the DS1615 will operate in the asynchronous communications mode since the comsel pin has a weak internal pulldown resistor. tx (transmit output) transmit output of the asynch- ronous serial interface. tx is tristated whenever v cc < v bat . rx (receive input) receive input of the asynchro- nous serial interface. sclk (3wire serial clock input) the sclk pin is the serial clock input for the 3wire synchronous com- munications channel. i/o (3wire input/output) the i/o pin is the data input/output signal for the 3wire synchronous commu- nications channel. rst (3wire reset input) the rst pin is the com- munications reset pin for the 3wire synchronous com- munications channel. int (interrupt output) the int pin is an open drain active low output that can be used as an interrupt input to a microprocessor. the int output remains low as long as the status bit causing the interrupt is present and the corresponding interruptenable bit is set. inspec (open drain inspecification output) this pin, in conjunction with the outspec pin, is used to signal the status of the operation and data of the DS1615. outspec (open drain outofspecification out- put) this pin, in conjunction with the inspec pin, is used to signal the status of the operation and data of the DS1615. st (start/status button input) the st pin provides two functions. first, when enabled as the datalog start source (se bit in control register is a logic 1), the st pin is used to instruct the DS1615 to begin recording tem- perature data based on the programmed start delay and data sample rate. the st pin must be held low for at least 0.5 seconds for a datalog mission to begin. secondly, the st pin can be used to poll the status of the recorded data. after datalogging has begun, the st pin instructs the DS1615 to report the status of the recorded data via the inspec and outspec pins. x1, x2 connections for a standard 32.768 khz quartz crystal, daiwa part number dt26s or equivalent. for greatest accuracy, the DS1615 must be used with a crystal that has a specified load capacitance of 6 pf. there is no need for external capacitors or resistors. note: x1 and x2 are very high impedance nodes. it is recommended that they and the crystal be guard ringed with ground and that high frequency signals be kept away from the crystal area. for more information on crystal selection and crystal layout considerations, please consult application note 58, crystal consider- ations with dallas real time clocks. nc (no connect) this pin should be left uncon- nected. memory the memory map in figure 2a shows the general orga- nization of the DS1615. as can be seen in the figure, the device is segmented into 32 byte pages. page 0 con- tains the real time clock and control registers (see figure 2b for more detail). the user nv ram resides in page 1. pages 17 to 19 are assigned to storing the alarm time stamps and durations. the temperature his- togram bins begin at page 64 and use up four pages. the temperature logging memory covers pages 128 to 191. memory pages 2 to 16, 20 to 63, 68 to 127, and 192 and up are reserved for future extensions. the end user can write only to the real time clock and control registers and the user nv ram. the rest of the memory map is readonly from the end users perspec- tive.
DS1615 052698 4/20 DS1615 memory map figure 2a 0000h page 0 rtc and control registers user nv ram (reserved for future extensions) serial number (optional) alarm time stamps and durations (reserved for future extensions) temperature histogram (63 bins of 2 bytes each) (reserved for future extensions) temperature datalog memory (64 pages) (reserved for future extensions) to 001fh 0020h to 003fh 0040h to 0217h 0218h to 021fh 00220h to 027fh 0280h to 07ffh 0800h to 087fh 0880h to 0fffh 1000h to 17ffh 1800h and higher page 1 page 2 to page 16 (excluding last 8 bytes of page 16) page 16 (last 8 bytes) page 17 to page 19 pages 20 63 page 64 to page 67 pages 68 127 page 128 to page 191 page 192 and higher address
DS1615 052698 5/20 DS1615 rtc and control page figure 2b addr. bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 function 00 0 10 seconds single seconds 01 0 10 minutes single minutes real ti 02 0 12/24 10 h a/p 10 h single hours time clock registers 03 0 0 0 0 0 day of week registers 04 0 0 10 date single date 05 0 0 0 10 m. single months 06 10 years single years 07 ms 10 seconds alarm single seconds alarm real 08 mm 10 minutes alarm single minutes alarm r ea l time cl k 09 mh 12/24 10 ha. a/p 10 h. alm. single hours alarm clock alarm 0a md 0 0 0 0 day of week alarm 0b low temperature threshold te m p erature 0c high temperature threshold temperature alarm 0d number of minutes between temperature conversions sample rate 0e eosc clr 0 se ro alie ahie aie control 0f (reads 00h) reserved 10 (reads 00h) reserved 11 current temperature temperature 12 start delay register (lsb) start delay 13 start delay register (msb) start delay 14 tr mem clr mip sip lobat tlf thf almf status 15 minutes 16 hours start ti 17 date time stamp 18 month stamp 19 year 1a low byte current 1b medium byte c urren t samples c 1c high byte p counter 1d low byte total 1e medium byte t o t a l samples c 1f high byte p counter
DS1615 052698 6/20 DS1615 alarm time stamps and durations figure 2c address register 220 t1 low samples counter lsb 221 t1 low samples counter 222 t1 low samples counter msb 223 t1 low duration 224 24c 24c t12 low samples counter lsb 24d t12 low samples counter 24e t12 low samples counter msb 24f t12 low duration 250 t1 high samples counter lsb 251 t1 high samples counter 252 t1 high samples counter msb 253 t1 high duration 254 27d 27c t12 high samples counter lsb 27d t12 high samples counter 27e t12 high samples counter msb 27f t12 high duration DS1615 alarm time stamps and durations figure 2d address register 800 40 c data bin (lsb) 801 40 c data bin (msb) 802 38 c data bin (lsb) 803 38 c data bin (msb) 804 879 87a 82 c data bin (lsb) 87b 82 c data bin (msb) 87c 84 c data bin (lsb) 87d 84 c data bin (msb) 87e reserved (00h) 87f reserved (00h) thermal sensor the key to temperature monitoring in the DS1615 is an integrated thermal sensor. the thermal sensor can measure temperature from 40 c to +85 c in 0.5 c increments (fahrenheit equivalent is 40 f to +183.2 f in 1.8 f increments). the thermal sensor provides an accuracy of 2 c. the format of temperature data is defined such that the temperature value is maintained in a single byte of data. table 1 illustrates the format of the temperature data byte format. the values of t[7..0] range from 00000000b (for 40 c) to 11111010b (for 85 c). each increment in the value of t[7..0] represents an increase in temperature of 0.5 c. the following simple formula can be used to translate the temperature data byte value into degrees celsius: c = 0.5(t[7..0]) 40 temperature data byte format table 1 t7 t6 t5 t4 t3 t2 t1 t0 msb lsb when a datalog mission has been initiated, the DS1615 provides temperature recording at regular intervals. however, the device also allows for immediate tempera- ture sensing upon a users command when the device is not currently on a datalog mission. this is accom- plished by issuing the read temperature command to the DS1615 over the serial interface. the most recently recorded temperature value is written to the current temperature register, regardless of whether that value was recorded from a datalog mission or from the issuance of the read temperature com- mand. the status of the contents of this register is pro- vided by the temperature ready (tr) bit in the status register. if tr is a logic 1, the data is valid. if tr is a logic 0, the data may not be reliable. during a datalog mis- sion, the tr bit is cleared to a logic 0 when a tempera- ture conversion has been initiated and is set to a logic 1 upon the completion of the conversion. likewise, the tr bit is cleared immediately after the read tempera- ture command is issued and is set to a logic 1 upon the completion of the conversion.
DS1615 052698 7/20 data logging when the DS1615 datalogging function is enabled, the device is said to be on a datalog mission until the data- logging is stopped. during a datalog mission, temperature samples are successively written to the temperature datalog memory pages. these memory pages are located at addresses 1000h to 17ffh. the first sample is written to address location 1000h. the second sample is writ- ten to address location 1001h. likewise, the address is incremented with each additional data sample. a total of 2048 registers have been reserved for datalog data. a datalog mission can be initiated via two different meth- ods; by a host instruction over the serial interface or by a pushbutton input. when the se bit in the control regis- ter is cleared to a logic 0, the start function of the st pin is disabled and writing any nonzero value to the sam- ple rate register will start a mission. when the se bit is set to a logic 1, the pushbutton method of starting a mis- sion is enabled. under this mode of operation, the DS1615 will begin a datalog mission when a nonzero value has been written to the sample rate register and the st pin has been held low for at least 0.5 seconds. the sample rate during a datalog mission is equal to the value written to the sample rate multiplied by one min- ute. writing a 0 to the mip bit in the status register com- pletes the mission. upon initiation of datalog mission by either method, the DS1615 will do two things: 1. the inspec and outspec pins will generate four low pulses simultaneously. 2. the missioninprogress (mip) bit in the status register is set to a one. the time at which the first datalog sample is measured is dependent upon the value in the start delay registers. the two start delay registers provide a method for the end user to program a delay before sampling com- mences. the delay is roughly equal to the value in the start delay registers times one minute. for example, if the start delay registers contain a value of ten, then the device will begin recording data approximately ten min- utes after it received either the pushbutton start signal or start instruction. the start delay registers are located at addresses 0012h and 0013h, with register 0012h being the lsb and register 0013h being the msb. the start delay register decrements every time the seconds reg- ister rolls over from 59 to 00. when this start delay reg- ister contains a 00, the first datalog sample will be taken when the seconds register rolls over from 59 to 00. the user has two options for dealing with the potential occurrence of a data overrun (i.e., more than 2048 total data samples). the first option is to enable the rollover feature of the DS1615. this is accomplished by setting the rollover bit (bit 3 of the control register) to 1. when the rollover feature is enabled, new data is written over previous data, starting with address 0000h. for exam- ple, if the datalog memory has been completely filled (i.e., 2048 data samples have been recorded) the next data sample will be written to address location 1000h and the address pointer will be incremented with each successive data sample. the second option for dealing with data overrun is to simply stop the recording of data after the datalog memory has been completely used. in other words, the DS1615 will stop recording data values after 2048 data samples. this feature is enabled by disabling the rol- lover feature. it should be noted that during a datalog mission, a time stamp for the first sample is recorded, but is not included for each subsequent sample. however, the time of acquisition for any data sample is easily determined by considering the start time, the sample rate, the value in the current sample counter, and the address of the par- ticular data sample in the datalog memory. if no rollover has occurred in the datalog memory, the sample time associated with any particular data point can be calcu- lated by multiplying the address of the data by the sam- ple rate and adding that to the stored start time value. if the rollover feature has been enabled, the user can determine if rollover has occurred by reading the value in the current samples register. this register counts the total number of samples that have been acquired. if this value is greater than 07ffh (decimal 2047) then the user knows that rollover has occurred. if rollover has occurred, the user needs to determine how many times rollover occurred in determining the sample time for any particular data sample. as a safety measure, the DS1615 has been designed such that the end user cannot write to the temperature datalog memory. this prevents the falsification of data- log data by writing values to datalog registers.
DS1615 052698 8/20 data histogram while on a datalog mission, the DS1615 also records a histogram of the recorded temperature data. the histo- gram is provided by a series of 63 twobyte data bins that are located in the temperature histogram memory pages (addresses 0800h to 087fh). each bin consists of a 16bit binary counter that is incremented each time an acquired temperature value falls into the range of the bin. the least significant byte of each bin is stored at the lower address. bin 0 begins at memory address 0800h, bin 1 at 0802h, and so on up to 087ch for bin 62. after a temperature conversion is completed, the num- ber of the bin to be updated is determined by dropping the two least significant bits of the binary temperature value. thus, bin 0 will be updated with every tempera- ture reading from 40 c to 38.5 c. in the same way, bin 1 is associated with the range of 38 c to 36.5 c. bin 62, finally, counts temperature values in the range of +84 c to 85.0 c. since the device will not generate temperature values higher than 85.0 c, bin 62 covers only three temperature values. the memory for a potential 64 th bin exists, but will always read 0s. since each data bin contains two bytes, a total of 65,535 samples can be accumulated. if more samples are measured, the data bin will remain at the maximum value. in other words, the data bin value will not roll over in the event of an overrun. temperature alarm logging for some applications it may be essential to record exactly when a temperature sample exceeds a prede- fined tolerance band and for how long the temperature violation remained. a tolerance band is specified by means of the tempera- ture alarm registers, addresses 000bh and 000ch. one can set a high and a low temperature threshold. as long as the temperature samples stay within this toler- ance band (i.e., are higher than the low threshold and lower than the high threshold), the DS1615 will not record any temperature alarm. if the temperature vio- lates the temperature band, the DS1615 will generate an alarm and set either the temperature high flag (thf) or the temperature low flag (tlf) in the status register (address 0014h). in addition, the device gener- ates a time stamp of when the alarm occurred and records the duration of the alarming condition. the int pin will be asserted by a high temperature alarm if the temperature high interrupt enable (thie) is set and will be asserted by a low temperature alarm if the tempera- ture low interrupt enable (tlie) is set. the device stores a time stamp of a violating condition by copying contents of the threebyte current samples counter when the alarm occurred. the least significant byte is stored at the lower address. one address higher than a time stamp, the DS1615 maintains a one byte duration counter that stores the number of times the temperature was found to be beyond the threshold. if this counter has reached its limit after 255 consecutive temperature readings and the temperature has not yet returned to a level within the tolerance band, the device will issue another time stamp at the next higher address and open another counter to record the duration. if the temperature returns to normal before the counter has reached its limit, the duration counter of the particular time stamp will not increment any further. should the temperature again cross this threshold, another time stamp will be recorded and its associated counter will increment with each temperature reading outside the tolerance band. this algorithm is implemented for the low as well as for the high temperature threshold. time stamps and durations where the temperature vio- lates the low temperature threshold are stored in the address range 0220h to 024fh (48 bytes). the memory address range 0250h to 027fh (48 bytes) is reserved for time stamps and duration where the temperature exceeds the high temperature threshold. this allocation allows to record 24 individual alarm events and periods (12 periods for too hot and 12 for too cold). the date and time of each of these periods can be determined from the start time stamp and the time distance between each temperature reading. figure 2c illustrates the alarm time stamps and durations register. inspec and outspec pins two special output pins, inspec and outspec , are intended to output the status of the DS1615. more spe- cifically, these pins can be used to control the illumina- tion of leds. for example, the inspec pin can be used to pulse a green led and the outspec pin can be used to pulse a red led. when the end user starts a datalog mission or polls the device for information, one or both of these pins will be pulsed four times. depend- ing on the status of the device, both pins will be pulsed simultaneously or just one pin will be pulsed at a time. each pulse is 62.5 ms in duration and will start every half second. see figures 8 and 9 for further details.
DS1615 052698 9/20 the inspec and outspec pins are used to provide visual feedback to the end user in the following situa- tions: 1. datalog mission start when a datalog mission is first initiated, the inspec and outspec pins will generate four low pulses simul- taneously to give the end user a visual indication that a datalog mission has begun. 2. request for status of data following a user request for the status of recorded tem- perature data, the inspec pin will generate four low pulses if the recorded temperature data is within the user defined limits (as set in the low temperature threshold and high temperature threshold registers). if the recorded temperature data contains any readings that fall outside of these thresholds, the outspec pin will be pulsed four times. if the request comes after the mission has started (i.e., mip = 1), but before the first temperature sample has been recorded, the inspec and outspec pins will generate a total of four low pulses alternately, starting with the outspec pin. the DS1615 provides two methods for the user to request the status of the data. the first method is to send the specification test command over the serial interface. the second method is by holding the st pin low for at least half a second after the datalogger has already been started. clock, calendar, and alarm the time and calendar information is accessed by read- ing/writing the appropriate register bytes. note that some bits are set to zero. these bits will always read zero regardless of how they are written. the contents of the time, calendar, and alarm registers are in the binarycoded decimal (bcd) format. the DS1615 can run in either 12hour or 24hour mode. bit 6 of the hours register is defined as the 12 or 24hour mode select bit. when high, the 12hour mode is selected. in the 12hour mode, bit 5 is the am/pm bit with logic one being pm. in the 24hour mode, bit 5 is the second 10hour bit (2023 hours). the DS1615 also contains a time of day alarm. the alarm registers are located in registers 0007h to 000ah. bit 7 of each of the alarm registers are mask bits (see table 2). when all of the mask bits are logic 0, an alarm will occur once per week when the values stored in time- keeping registers 0000h to 0003h match the values stored in the time of day alarm registers. an alarm will be generated every day when mask bit of the day alarm register is set to 1. an alarm will be generated every hour when the day and hour alarm mask bits are set to 1. similarly, an alarm will be generated every minute when the day, hour, and minute alarm mask bits are set to 1. when day, hour, minute, and seconds alarm mask bits are set to 1, an alarm will occur every second. as a security measure to prevent unauthorized tamper- ing, changing any value in the rtc and control regis- ters (with the exception of the status register) will stop a datalog mission and clear the missioninprogress (mip) bit. time of day alarm bits table 2 alarm register mask bits (bit 7) seconds minutes hours days 1 1 1 1 alarm once per second 0 1 1 1 alarm when seconds match 0 0 1 1 alarm when minutes and seconds match 0 0 0 1 alarm when hours, minutes, and seconds match 0 0 0 0 alarm when day, hours, minutes, and seconds match special purpose registers the following description defines the operation of the special function registers of the DS1615. control register eosc clr 0 se ro alie ahie aie msb lsb
DS1615 052698 10/20 eosc enable oscillator this bit controls the state of the oscillator in battery backup mode only. when set to logic 0, the oscillator is active. when this bit is set to a logic 1, the oscillator is stopped and the DS1615 is placed into a lowpower standby mode with a current drain of less than 100 nanoamps at room temperature. when v cc is applied or when mip =1, the oscillator is active regardless of the state of this bit. clr clear enable this bit enables the clear memory command. when this bit is set to a one and the clear memory command is subsequently issued, the datalog, histogram, temperature alarm, current samples, start time stamp, start delay, and sample rate register are all cleared to zero. following the issuing of the clear memory command, the clr bit is also cleared to zero. if the clear enable bit is set, but a command other than the clear memory command is issued next, the clr bit is cleared to a zero and the contents of the datalog, histo- gram, temperature alarms, current samples registers, start delay, and sample rate register are unchanged. se start enable this bit enables the start function of the st input. when se is a logic 1, the st input is enabled as the start pin for datalogging operation. when enabled, datalogging operation begins when the sample rate register contains a nonzero value and the st pin has been held low for at least 0.5 seconds. when se is a logic 0, writing any nonzero value to the sample rate register will start datalogging operation. once datalog operation has been initiated, the first data sample occurs after the specified delay written to the start delay register has elapsed. ro rollover this bit determines whether the data- log function of the DS1615 rolls over or stops writing data to the datalog memory in the event that the datalog memory is completely filled. if ro is set to a 1, the data- log memory will roll over after all 2048 registers in the datalog memory have been used. in other words, after the 2048 th data sample, the following sample will be written to register 0000h, overwriting the original data. likewise, subsequent samples will increment through the datalog registers, overwriting their data. if ro is cleared to a 0, no further data samples will be written to the datalog memory after all datalog memory registers have been filled. samples, however, will con- tinue to be taken and the appropriate histogram regis- ters will be incremented with each sample. likewise, the temperature alarms will also continue to function. tlie temperature low interrupt enable when set to a logic 1, this bit permits the temperature low flag (tlf) in the status register to assert int . when the tlie bit is set to logic 0, the tlf bit does not initiate the int signal. thie temperature high interrupt enable when set to a logic 1, this bit permits the temperature high flag (thf) in the status register to assert int . when the thie bit is set to logic 0, the thf bit does not initiate the int signal. aie alarm interrupt enable when set to a logic 1, this bit permits the alarm flag (almf) in the status register to assert int . when the aie bit is set to logic 0, the almf bit does not initiate the int signal. status register tr mem clr mip sip lobat tlf thf almf msb lsb tr temperature ready this bit indicates the status of the temperature value in the current temperature regis- ter after the read temperature command has been executed. when this bit is a logic 1, the DS1615 has completed the temperature measurement and has writ- ten a valid value to the current temperature register. when this bit is a logic 0, the temperature measurement has not been completed. this bit is cleared to 0 when the read temperature command is sent. mem clr memory cleared this bit indicates that the datalog memory, histogram memory, temperature alarm, current samples, start time stamp, start delay, and sample rate registers are all cleared to zero. mem clr is cleared to 0 when a datalog mission is started (i.e., mip = 1). mip mission in progress this bit indicates the sam- pling status of the DS1615. if mip is a logic 1, the device is currently on a mission in which it is operating in the data logging mode. the mip bit is changed to a logic 1 immediately following 1) the writing of a nonzero value to the sample rate register when the se bit is a 0 or 2) a
DS1615 052698 11/20 falling edge on the st pin if the sample rate register contains a nonzero value and the se bit is a 1. if mip is a logic 0, the DS1615 is not currently in datalog- ging mode. the mip bit transitions from a logic 1 to a logic 0 whenever datalogging is stopped. datalogging is stopped when the DS1615 is cleared via the clear bit and clear instruction or when any of the rtc or control registers (with the exception of the status register) are written to during a mission. the mip bit can also be writ- ten to a logic 0 by the end user to stop datalogging. it cannot, however, be written to a logic 1. sip sample in progress this bit indicates that the DS1615 is currently in the process of acquiring a tem- perature sample. when the sip bit is 0, a temperature conversion is not currently in process and the next con- version will not begin for at least 250 ms. when the sip bit is a 1, a temperature conversion is in progress and no registers or memory locations should be read or written. the sip bit will be a 1 for a maximum of 750 ms. lobat low battery flag this bit reflects the status of the backup power source connected to the v bat pin. a logic one for this bit indicates an exhausted lithium energy source. tlf temperature low flag a logic 1 in the tempera- ture low flag bit indicates that the temperature is less than or equal to the value in the temperature low threshold register. if tlie is also a logic 1, the int pin will go low. tlf is cleared by writing this bit to a logic 0. thf temperature high flag a logic 1 in the temper- ature high flag bit indicates that the temperature is greater than or equal to the value in the temperature high threshold register. if thie is also a logic 1, the int pin will go low. thf is cleared by writing this bit to a logic 0. almf alarm flag a logic 1 in the alarm flag bit indi- cates that the current time has matched the time of day alarm registers. if the aie bit is also a logic 1, the int pin will go low. almf is cleared by writing this bit to a logic 0. sample rate register sr7 sr6 sr5 sr4 sr3 sr2 sr1 sr0 msb lsb the data sample rate for the DS1615 can range from once per minute to once per 255 minutes. the rate is equal to the value written to the sample rate register multiplied by one minute. this register can only be written to a new value when the mem clr bit in the status register is set to 1. in other words, once a datalog mission has started, it cannot be changed without first issuing the clear memory com- mand. the sample rate register is cleared by issuing the clear memory command. start delay resister d15 d14 d13 d12 d11 d10 d9 d8 msb lsb d7 d6 d5 d4 d3 d2 d1 d0 the start delay register determines the amount of delay before the DS1615 begins to take temperature mea- surements. the amount of the delay is roughly equal to the value in the register multiplied by one minute. if the register contains 00h, the first sample will begin when the seconds register rolls over from 59 to 00. the value in this register decrements each time the seconds register rolls over from 59 to 00 until the start delay register reaches a value of 00h. temperature high threshold register th7 th6 th5 th4 th3 th2 th1 th0 msb lsb
DS1615 052698 12/20 this register determines the high threshold for interrupt generation from the thermal sensor. if the temperature is greater than or equal to the value in this register, an interrupt will be activated if the temperature high inter- rupt enable (thie) bit is set to a logic 1. temperature low threshold register tl7 tl6 tl5 tl4 tl3 tl2 tl1 tl0 msb lsb this register determines the low threshold for interrupt generation from the thermal sensor. if the temperature is less than or equal to the value in this register, an inter- rupt will be activated if the temperature low interrupt enable (tlie) bit is set to a logic 1. current temperature register ct7 ct6 ct5 ct4 ct3 ct2 ct1 ct0 msb lsb this register provides the most recently acquired tem- perature measurement. it contains either the most recently measured sample from automatic datalogging or it contains data that was acquired in response to a users instruction for an immediate temperature mea- surement. an immediate measurement is acquired by issuing the read temperature command. after issuing the read temperature command, the value in this register is valid only if the temperature ready (tr) bit in the status register is a logic 1. current samples counter this threebyte register set provides the number of samples that have been logged during the current data logging operation (also known as a amissiono). the con- tents of this register can be used by software to point to the most recent data sample in the datalog nv ram. the data in these registers are cleared by enabling and issuing the clear memory command. total samples counter this threebyte register set provides the total number of data samples that have been logged during the life of the product. this value cannot be written by the end user. the value in this register is maintained as long as the lithium energy source is available. silicon serial number (optional) a unique 64bit lasered serial number is located in the register bank. this serial number is divided into three parts. the first byte contains a model number to identify the device type. the next six registers contain a unique binary number. the last serial number byte contains a crc byte used to validate the data in the first seven serial number registers. all eight bytes of the serial number are read only registers. the DS1615 is manufactured such that no two devices will contain an identical serial number. blocks of num- bers can be reserved by the customer. contact dallas semiconductor for special ordering information for devices with reserved blocks of serial numbers. security the DS1615 provides several measures to insure data integrity for the end user. these security measures are intended to prevent third party intermediaries from tam- pering with the data that has been stored in the datalog and histogram memory. as a first security measure, the datalog and histogram memory are readonly from the perspective of the end user. the DS1615 can write sampled data into these memory banks, but the end user cannot write data to individual registers. this prevents an unscrupulous intermediary from writing false data to the DS1615. the end user, however, can clear the contents of the datalog and histogram memory. this is accomplished by enab- ling and issuing the clear memory command. a second security feature lies in the fact that once the sample rate has been selected by writing to the sample rate register, it cannot be changed to another value without resetting the recorded temperature data. this prevents gathering many data samples at a fast sample rate and then lowering the sample rate to give the appearance that the data was recorded over a longer period of time. the sample rate register can only be written to a new value if the mem clr bit is set to one. a third security feature lies in the two integrated sample counters the current samples counter and the total
DS1615 052698 13/20 samples counter. these two counters can be used to guarantee that the DS1615 data has not been cleared at any time during a given period of time. the current samples counter counts the number of samples that have occurred since the most recent data acquisition operation was started (i.e., the number of samples since the sample rate register was written to a nonzero value). the total samples counter counts the total number of samples that have been recorded in the life of the device (assuming the lithium energy source has not been removed during that time). if the end user knows the value in the total samples counter before the data acquisition operation is started, he can guarantee that the DS1615 has not been cleared. if the current sam- ples count equals the difference between the ending value and beginning value of the total samples counter, then the DS1615 data has not been cleared during that time frame. as a fourth security measure, changing any value in the rtc and control registers (with the exception of the status register) will stop datalogging and clear the mis- sioninprogress (mip) bit. serial interface the DS1615 provides two different serial communica- tions options; asynchronous and synchronous. the mode of communication is selected via the com- sel pin. when this pin is pulled high, the DS1615 oper- ates in synchronous mode. in this mode, communica- tion with the DS1615 is facilitated by the sclk, i/o, and rst pins. when comsel is pulled low or floated, asynchronous communications is selected and com- munication with the device occurs over the tx and rx pins. the operation of each mode is discussed in further detail below. asynchronous communication in asynchronous mode, the DS1615 operates as a slave peripheral device which is read and written over a half duplex asynchronous data interface at the fixed rate of 9,600 bits per second. data is received and trans- mitted in 8bit bytes using a standard asynchronous serial communications format as shown in figure 3. this format is easily generated by the uart in most systems. the DS1615 data format implements 10 bit words including one start bit, eight data bits, and one stop bit. data is received by the DS1615 on the rx pin and transmitted by the tx pin. communication word format figure 3 start bit data bit stop bit d0 d1 d2 d3 d4 d5 d6 d7 synchronous communication synchronous communication is accomplished over the 3wire bus which is composed of three signals. these are the rst (reset), the sclk (serial clock), and i/o (data i/o) pins. the 3wire bus operates at a maximum data rate of 2 mbps. all data transfers are initiated by driving the rst input high and are terminated by driving rst low. (see figures 6 and 7.) a clock cycle is a sequence of a falling edge followed by a rising edge. for data inputs, the data must be valid during the rising edge. data bits are output on the falling edge of the clock and remain valid through the rising edge. when reading data from the DS1615, the i/o pin goes to a high impedance state when the clock is high. taking rst low will terminate any communication and cause the i/o pin to go to a high impedance state. general communications format communication with the DS1615 in both synchronous and asynchronous modes is accomplished by first writ- ing a command to the device. the command is then fol- lowed by the parameters and/or data required by the command. the command set for the DS1615 can be seen in table 3. reads and writes to the DS1615 differ
DS1615 052698 14/20 in that writes are performed one byte at a time while reads are performed in page long (up to 32 byte) bursts. writing one byte at a time simply means that a write command has to be issued before each byte of data that is written. for example, writing to the user nv ram requires that the write user nv ram command be writ- ten followed by the address to be written and then the actual data byte. writing a second data byte would require the same procedure with a new address speci- fied. reads, however, are accomplished in bursts. for example, if an end user wants to read data from a spe- cific page he would first issue the read page command, followed by the address to begin reading. after the DS1615 receives the command and starting address, it will immediately transmit the data that resides at the given address location. however, rather than stop with that single byte of data, the DS1615 will continue trans- mitting the next byte of data and will continue transmit- ting data until the page boundary is reached. a page read can begin at any address, but will always end at the page boundary. thus, a page read can range from 1 to 32 bytes. it should be noted that a read can be termi- nated at any time when communicating in synchronous mode by pulling rst to ground. however, in asynchro- nous mode, the DS1615 will not stop transmitting data until the page boundary is reached. cyclical redundancy check (crc) when communicating in the asynchronous mode, a 16bit crc is transmitted by the DS1615 following the transmission of all data. when communicating in syn- chronous mode, no crc is transmitted. the 16bit crc (cyclical redundancy check) is used to insure the accuracy of the data that is read from the DS1615. the crc is generated according to the stan- dardized crc16polynomial function x 16 + x 15 + x 2 + 1. figure 4 illustrates the function of the generator. the crc is generated by clearing the crc generator and then shifting in data from the register set being read. a sixteen bit crc is transmitted by the DS1615 after the last register of any page of memory is read. in other words, a crc is generated at the end boundary of every page that is read. crc hardware description and polynomial figure 4 bit0 x 0 x 1 x 2 x 3 x 4 x 5 x 6 x 7 polynomial = x 16 + x 15 + x 2 + 1 bit1 xor bit2 bit3 bit4 bit5 bit6 bit7 bit8 x 8 x 9 x 11 x 12 x 13 x 14 x 10 x 15 bit9 xor bit10 xor bit11 bit12 bit13 bit14 bit15 x 16 crc output input data communication reset (asynchronous mode) when transmitting the command, parameters, or data to the DS1615, it is possible that communication might be interrupted. for example, the user might accidentally disconnect the cable linking the device to the host com- puter. to insure that communication always starts at a known state when in the asynchronous mode, the DS1615 will reset the communication if it senses a prob- lem. this is accomplished via two methods. first, if dur- ing the transmission of a byte of data to the DS1615, the stop bit is not received, communication will be reset. the lack of a valid stop bit indicates that that particular byte of data was not received correctly. second, if more then 10bit times expire between the reception of one byte of data and the reception of the next required byte, then communication will be reset. automatic resetting of communication is not required when communicating in the synchronous mode. this is because of the function of the rst pin. pulling rst low resets the serial communication of the DS1615.
DS1615 052698 15/20 DS1615 commands all communication with the DS1615 is accomplished by writing a command to the device followed by parameter byte/s if required. table 3 illustrates the commands sup- ported by the DS1615. DS1615 commands table 3 command function description 22h write byte write one byte to rtc, control registers, and user nv ram 33h read page read page 44h specification test poll status of temperature extremes 55h read temperature instructs DS1615 to immediately read temperature and store result in current temperature register when mip = 0. a5h clear memory this command clears the datalog, histogram, temperature alarm, cur- rent samples, start time stamp, start delay, and sample rate registers when the clear enable bit (clr) in the control register is set. the DS1615 commands are summarized below. note that if an invalid command is issued, no action is taken by the device. 1. write byte (22h) host transmit: d7 d6 d5 d4 d3 d2 d1 d0 0 0 1 0 0 0 1 0 0 0 a5 a4 a3 a2 a1 a0 d7 d6 d5 d4 d3 d2 d1 d0 DS1615 response: none note that good programming practice insists that the clear memory command should be issued whenever the DS1615 is programmed to begin a new datalogging mission. 2. read page (33h) host transmit: d7 d6 d5 d4 d3 d2 d1 d0 0 0 1 1 0 0 1 1 a15 a14 a13 a12 a11 a10 a9 a8 d7 d6 d5 d4 d3 d2 d1 d0 DS1615 response (host receives): d7 d6 d5 d4 d3 d2 d1 d0 register a[15..0] register xxxh where xxx represents the last register of the page that has been accessed. when in asynchronous mode, the tx pin becomes inac- tive after the last register in the page and the crc have been transmitted. in synchronous mode, the DS1615 will continue to transmit data as long as clocks are pres- ented to the serial interface. if clocks are presented after the final data bit of the last register in the page, the DS1615 will wraparound to the first register in the page and sequentially transmit data as long as the clocks continue. 3. specification test (44h) host transmit: d7 d6 d5 d4 d3 d2 d1 d0 0 1 0 0 0 1 0 0 DS1615 response (host receives): either the inspec or outspec pin will generate four low pulses. each pulse will be 62.5 ms in duration and will start every half second. this command instructs the DS1615 to generate four low pulses on either the inspec or outspec led driver pins. the pin that is driven is dependent upon whether any data samples fell outside of the high tem-
DS1615 052698 16/20 perature and low temperature threshold boundaries. these pins, when used to drive leds, can be used to provide a quick visual confirmation as to whether the temperature remained within the userdefined limits. note that the specification test command is ignored if the st button is pulled to ground when the command is issued. 4. read temperature (55h) host transmit: d7 d6 d5 d4 d3 d2 d1 d0 0 1 0 1 0 1 0 1 DS1615 response (host receives): when the device is not currently datalogging (i.e., mip = 0), the tempera- ture is immediately measured and value is written to the current temperature register. this command instructs the DS1615 to immediately perform a temperature measurement and to store the resulting value in the current temperature register. the temperature value obtained from this command is not stored in the datalog or histogram memory. after this command has been executed, the user must read the temperature ready (tr) bit in the status register to determine if the temperature measurement has been completed. if the tr bit is a logic 1, the measurement has been completed and the value in the current tem- perature register is valid. if the tr bit is a logic 0, the measurement has not been completed. this command functions only when mip = 0 (i.e., the device is not cur- rently datalogging). if mip =1, the DS1615 takes no action in response to the command. 5. clear memory (a5h) host transmit: d7 d6 d5 d4 d3 d2 d1 d0 1 0 1 0 0 1 0 1 DS1615 response: the contents of the datalog, histo- gram, temperature alarm, current samples, start time stamp, start delay, and sample rate registers are cleared if the clear memory command has been enabled by setting the clr bit in the control register to a one. after clearing the memory, the mem clr bit in the status register is set. the clear memory command functions only if the oscillator is active. the DS1615 is inaccessible for 500 m s after the clear memory com- mand has been issued.
DS1615 052698 17/20 absolute maximum ratings* voltage on any pin relative to ground 1.0v to +7.0v operating temperature 40 c to +85 c storage temperature 55 c to +125 c soldering temperature 260 c for 10 seconds * this is a stress rating only and functional operation of the device at these or any other conditions above those indicated in the operation sections of this specification is not implied. exposure to absolute maximum rating conditions for extended periods of time may affect reliability. recommended dc operating conditions (40 c to 85 c) parameter symbol min typ max units notes power supply voltage v cc 4.0 5.0 5.5 v 1 input logic 1 v ih 2.2 v cc +0.3 v 1 input logic 0 v il 0.3 +0.8 v 1 battery voltage v bat 2.6 lower of 5v or 90% v cc v 1 dc electrical characteristics (40 c to 85 c) parameter symbol min typ max units notes input leakage i li 1 +1 m a logic 1 output v oh 2.4 v logic 0 output v ol 0.4 v tx and i/o pins output current @ 2.0v i oh 2.2 ma tx, i/o, and int pins output current @ 0.8v i ol 4 ma inspec and outspec output current @ 0.8v i ol 10 ma active supply current i cca 2 10 ma temperature conversion current i tc 500 m a oscillator current i osc 300 500 na battery standby current (oscillator off) i bat 200 na DS1615 thermometer error t err 2.0 c 6 capacitance (t a = 25 c) parameter symbol min typ max units notes input capacitance c i 10 pf crystal capacitance c x 6 pf
DS1615 052698 18/20 ac electrical characteristics (40 c to 85 c; vcc=5.0v 10%) parameter symbol min typ max units notes delay from st to inspec or outspec active t ss 560 ms delay from specification to inspec or outspec active t cs 560 ms temperature conversion time t conv 150 ms inspec and outspec active low pulse width t sl 62.5 ms inspec and outspec high duration t sh 437.5 ms asynchronous interface timing (40 c to 85 c; vcc=5.0v 10%) parameter symbol min typ max units notes date rate f bit 9,408 9,600 9,792 bits/sec 2 turnaround time t turn 2/f bit s synchronous (3wire) serial interface timing (40 c to 85 c; vcc=5.0v 10%) parameter symbol min typ max units notes data to sclk setup t dc 50 ns 3 sclk to data hold t cdh 70 ns 3 sclk to data delay t cdd 200 ns 3,4, 5 sclk low time t cl 250 ns 3 sclk high time t ch 250 ns 3 sclk frequency t clk dc mhz 3 sclk rise and fall t r , t f 2.0 ns rst to sclk setup t cc 1 500 m s 3 sclk to rst hold t cch 60 ns 3 rst inactive time t cwh 1 m s 3 rst to i/o high z t cdz 70 ns 3, 7 sclk to i/o high z t ccz 70 ns 3, 7 notes: 1. all voltages are referenced to ground, 2. the data rate f bit is equal to 1/t bit 3. measured with v ih = 3.0v or v il = 0.0v and 10 ns maximum rise and fall time. 4. measured at v oh =2.4v or v ol =0.4v. 5. load capacitance = 50 pf. 6. thermometer error reflects temperature error as tested during calibration. 7. sampled with 5 pf load. not 100% tested.
DS1615 052698 19/20 asynchronous serial interface timing figure 5 rx stop start tx t bit data t turn start stop data t bit synchronous (3wire) serial interface read timing figure 6 t cc t cdd t ccz data address read command t cdh rst sclk i/o t dc t cdz 7 0 7 1 0 7 1 0 synchronous (3wire) serial interface write timing figure 7 t cl address t cdh rst t dc sclk i/o t cc t ch data write command t r t f t cwh t cch 017017 07
DS1615 052698 20/20 specification polling from st input figure 8 t sl t ss st inspec outspec t sh note: inspec /outspec generate a total of four low pulses. specification polling from command figure 9 t sl t cs rx inspec outspec start data = 55h stop t sh note: inspec /outspec generate a total of four low pulses.


▲Up To Search▲   

 
Price & Availability of DS1615

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X